package  com.housediyadmin.command.treeCommand
{
	import com.housediyadmin.events.treeEvents.GetGoodsTreeEvent;
	import com.housediyadmin.model.GoodsTreeModel;
	
	import mx.controls.Alert;
	
	import org.robotlegs.mvcs.Command;
	
	/**
	 * 
	 * @author chenchao
	 * 
	 */
	public class UpdateGoodsTreeCommand extends Command
	{
		[Inject]
		public var event:GetGoodsTreeEvent;
		
		[Inject]
		public var model:GoodsTreeModel;
		
		override public function execute():void
		{
			model.updateTreeXML(event.receivedXML);			
		}
	}
}